package com.clazz;

class A {
	static {
		System.out.println("1");
	}

	public A() {
		System.out.println("2");
	}
}

class ThreadNew extends Thread {

	public ThreadNew() {
		this.setName("ThreadNew");
	}

	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName());
	}
}

public class TestMain extends A {

	static {
		System.out.println("21");
	}

	public TestMain() {
		System.out.println("3");
	}

	public static void main(String[] args) {
		
		System.out.println("==");
		System.out.println((new Integer(1)).equals(new Integer(1)));

		System.out.println(Boolean.FALSE.toString());
		System.out.println(Boolean.TRUE.toString());
		TestMain tm = new TestMain();
		Thread.currentThread().setName("main");
		System.out.println(Thread.currentThread().getName());
		
		ThreadNew tn = new ThreadNew();
		tn.start();
	}
}
